import { request } from './request'

export function Login(data) {
  return request().post('/user/login', data)
}
export function Register(data) {
  return request().post('/user/register', data)
}

export function GetUser() {
  return request().get('/user')
}

//充值记录
export function GetRechargePageList(current) {
  return request().get('/user/recharge/pagelist', { params: { current } })
}

//首页统计数据
export function GetHomeEchart() {
  return request().get('/shoporder/homeechart')
}

//订单列表
export function GetShopOrderPageList(current) {
  return request().get('/shoporder/pagelist', { params: { current } })
}

export function GetShopOrderById(id) {
  return request().get('/shoporder/' + id)
}
